package com.eva.service.cms.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("文章详情视图对象")
public class CmsArticleDetailVO implements Serializable {

    @ApiModelProperty(value="文章唯一标识")
    private String uid;

    @ApiModelProperty(value="文章标题")
    private String title;

    @ApiModelProperty(value="内容摘要")
    private String contentDigest;

    @ApiModelProperty(value="关键字")
    private String keywords;

    @ApiModelProperty(value="文章内容")
    private String content;

    @ApiModelProperty(value="图片集")
    private String images;

    @ApiModelProperty(value="附件集")
    private String attachments;

    @ApiModelProperty(value="文章封面图")
    private String cover;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value="创建时间")
    private Date createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value="更新时间")
    private Date updatedAt;

    @ApiModelProperty(value="栏目列表")
    private List<CmsArticleCategoryVO> categories;

    @ApiModelProperty(value="所属标签名称")
    private List<String> tags;

}
